package com.tianji.learning.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.domain.po.PointsRecord;
import com.tianji.learning.domain.vo.PointsStatisticsVO;
import com.tianji.learning.enums.PointsRecordType;

import java.util.List;

/**
* @author Cammy
* @description 针对表【points_record(学习积分记录，每个月底清零)】的数据库操作Service
* @createDate 2025-02-24 03:58:44
*/
public interface PointsRecordService extends IService<PointsRecord> {

    /**
     * 保存积分明细
     * @param userId
     * @param i
     * @param pointsRecordType
     */
    void addPointsRecord(Long userId, int i, PointsRecordType pointsRecordType);

    /**
     * 查询我的今日积分
     * @return
     */
    List<PointsStatisticsVO> queryMyPointsToday();
}
